<%@page import="java.util.Calendar"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.wodwl.entity.User"%>

<%
	Calendar cal=Calendar.getInstance();
	int year=cal.get(Calendar.YEAR);
	int month=cal.get(Calendar.MONTH)+1;
	int date=cal.get(Calendar.DATE);
	String mytime=year+"年"+month+"月"+date+"日";

%>

<%User user=(User)session.getAttribute("g305_user");%>
	<div class="banner">
			<div class="banner-sub">
			<ul>
				<li class="item"><a class="link link-hover"
					href="/index_login_view.do">首页</a>
				</li>
				<li class="item"><a class="link link-hover" href="/user/list_user.do?username=<%=user.getUsername() %>">成员基本信息</a>
				</li>
				<li class="item"><a class="link link-hover" href="http://localhost:8080/blog/blog_list.do">博客天地</a>
				</li>
				<li class="item">
					<a class="link link-hover" href="/bbs/bbs_list.do">论坛交流</a>
				</li>
				<li class="item"><a class="link link-hover" href="/app/app_list.do">G305项目</a></li>
				<li class="item"><a class="link link-hover" href="/resource/resource_list.do?path=a-1">资源共享</a></li>
				<li class="item"><a class="link link-hover" href="#">&nbsp;</a></li>
				<li class="item"><a class="link link-hover" href="#">&nbsp;</a></li>
				<li class="item"><a class="link link-hover" href="#">&nbsp;</a></li>
				<li class="item"><a class="link link-hover" href="/index.do"><span id="logout">注销</span></a><span id="mytime"><%=mytime %></span></li>
				
			</ul>
		</div>
	</div>
	
	<!-- 头像  公共代码-->
	
	<div class="wrapper js-gotop">
		<div class="conL">
			<div id="userInfo" class="clearfix">
				<div class="user-info clearfix">
					<a href="/user/info_display.do" title="wodwl"> <img
						src="../../static/img1.jpg" alt="wodwl" class="thumb"></a>
					<h2>
						<a href="/user/info_display.do"><font color="red" size="3"><%=user.getUsername() %></font></a>
					</h2>
					<%
						switch(user.getLevel()){
						case 1:
						%>
							蚂蚁蛋
						<%
						break;
						case 2:
						%>
							蚂蚁宝宝
						<%
						break;
						case 3:
						%>
							蚂蚁儿童
						<%
						break;
						case 4:
						%>
							蚂蚁青年
						<%
						break;
						case 5:
						%>
							蚂蚁成年
						<%} %>
				</div>
			</div>
			<%
			String linkType=(String)pageContext.getAttribute("linkType");
			%>
			
			<div class="oauth-navi">
				<ul>
					<%if(linkType.equals("0")){ %>
						<li class="cur"><a href="/index_login_view.do">首页</a></li>
					<%}else{ %>
						<li><a class="noBorder" href="/index_login_view.do">首页</a></li>
					<%} if(linkType.equals("1")){ %>
						<li class="cur"><a href="/user/list_user.do">成员基本信息</a></li>
					<%}else{ %>
						<li><a class="noBorder" href="/user/list_user.do">成员基本信息</a></li>
					<%} if(linkType.equals("2")){ %>
						<li class="cur"><a href="/jsp/blog/blog_list.jsp">博客天地</a></li>
					<%}else{ %>
						<li><a class="noBorder" href="/jsp/blog/blog_list.jsp">博客天地</a></li>
					<%} if(linkType.equals("3")){ %>
						<li class="cur"><a href="/jsp/bbs/bbs_list.jsp" >论坛交流</a></li>
					<%}else{ %>
						<li><a class="noBorder" href="/jsp/bbs/bbs_list.jsp" >论坛交流</a></li>
					<%} if(linkType.equals("4")){ %>
						<li class="cur"><a href="/app/app_list.do">G305项目</a></li>
					<%}else{ %>
						<li><a class="noBorder" href="/app/app_list.do">G305项目</a></li>
						<%} if(linkType.equals("5")){ %>
						<li class="cur"><a href="/jsp/resource/resource_list.jsp">资源共享</a></li>
					<%}else{ %>
						<li><a class="noBorder" href="/jsp/resource/resource_list.jsp">资源共享</a></li>
					<%} if(linkType.equals("6")){ %>
						<li class="cur"><a class="noBorder" href="#">关于我们</a></li>
					<%}else{ %>
						<li><a class="noBorder" href="#">关于我们</a></li>
					<%} %>
				</ul>
			</div>
		</div>